package com.jn.exam.oss.service;

import java.io.IOException;
import java.util.Map;

/**
 * @author 江南大学1033190417
 * @date 2022/1/10 13:59
 */
public interface FaceService {
    //人脸搜索1:M
    Map<String,Object> searchfaceOne(String imagebase64,String userId,String faceGroupId) throws IOException;

    //人脸注册
    Map<String,Object> registerFace(StringBuffer imagebase64,String userId,String faceGroupId)throws IOException;

    //人脸更新
    Map<String, Object> updateFace(StringBuffer imagebast64, String userId, String faceGroupId) throws IOException;

    //用于将用户从某个组中删除
    Map<String,Object> deleteUserFromGroup(String userId, String faceGroupId)throws Exception;

    //人脸搜索M:N
    Map<String, Object> searchFaceSome(StringBuffer imagebast64,  String faceGroupId)throws IOException;

    //人脸检测，主要放回人脸数
    Map<String, Object> faceCheck(String imagebast64)throws IOException;

}
